#!/usr/bin/env bash

#HOST=localhost
#HOST=hkVideo.part01.center.nh.com
HOST=iotlink-gateway.csair.com
PORT=80

URL=${HOST}:${PORT}


# echo "home url"
# curl http://${URL}/

echo "set report url"
#curl -X POST -H "Content-Type: application/json" http://${URL}/webhook?reportUrl=http://localhost:9090/reportRecv
#curl -X POST -H "Content-Type: application/json" http://${URL}/webhook?reportUrl=http://park.ali.com:9090/reportRecv
#curl -X POST -H "Content-Type: application/json" "http://${URL}/campus/openapi/subsystem/sha/endpoint-hik-001/webhook?reportUrl=http://park.ali.com:9090/reportRecv"
curl -X POST -H "Content-Type: application/json" "http://${URL}/campus/openapi/subsystem/sha/endpoint-hik-002/webhook?reportUrl=http://park.ali.com:9090/reportRecv"
#curl -X POST -H "Content-Type: application/json" "http://${URL}/campus/openapi/subsystem/sha/endpoint-hik-003/webhook?reportUrl=http://park.ali.com:9090/reportRecv"

